﻿using AutoMapper;
using PaymentService.Services.Dtos;
using ProductService.Services.Dtos;
using SeckillService.Services.Dtos;
using WebSite_Aggregate.Services.Dtos;

namespace WebSite_Aggregate.ObjectMapping;

public class WebSite_AggregateAutoMapperProfile : Profile
{
    public WebSite_AggregateAutoMapperProfile()
    {
        /* Create your AutoMapper object mappings here */
        CreateMap<SeckillProductDto, SeckillProductDetailsDto>().ReverseMap();

        CreateMap<CreateSeckillOrderDto, OrderItemDto>().ReverseMap();

        CreateMap<CreateSeckillPreOrderDto, SeckillPreOrderDto>().ReverseMap();

        CreateMap<CreateSeckillOrderPrePayDto, SeckillOrderPrePayDto>().ReverseMap();

        CreateMap<CreateSeckillOrderPayDto, SeckillOrderPayDto>().ReverseMap();

        CreateMap<CreateSeckillOrderPayDto, CreateOrderPayDto>().ReverseMap();

        CreateMap<OrderPayDto, SeckillOrderPayDto>().ReverseMap();
    }
}
